<template>
  <a-card :bordered="false">
    <!-- 查询区域 -->
    <div class="table-page-search-wrapper">
      <a-form layout="inline" @keyup.enter.native="searchQuery">
        <a-row :gutter="24">
        </a-row>
      </a-form>
    </div>
    <!-- 查询区域-END -->

    <!-- table区域-begin -->
    <div>
      <a-table
        ref="table"
        size="middle"
        :scroll="{x:true}"
        bordered
        rowKey="id"
        :columns="columns"
        :dataSource="dataSource"
        :pagination="ipagination"
        :loading="loading"
        class="j-table-force-nowrap"
        @change="handleTableChange">

        <template slot="htmlSlot" slot-scope="text">
          <div v-html="text"></div>
        </template>

      </a-table>
    </div>
  </a-card>
</template>

<script>

  import '@/assets/less/TableExpand.less'
  import { mixinDevice } from '@/utils/mixin'
  import { JeecgListMixin } from '@/mixins/JeecgListMixin'


  export default {
    name: "TenantList",
    mixins:[JeecgListMixin, mixinDevice],
    components: {
    },
    data () {
      return {
        description: '抗菌药物医生管理页面',
        // 表头
        columns: [
          {
            title:'医生名称',
            align:"center",
            dataIndex: 'name'
          },
          {
            title:'科室',
            align:"center",
            dataIndex: 'dept'
          },
          {
            title:'级别',
            align:"center",
            dataIndex: 'rank',
            // customRender:function(t, r, index) {
            //   if(r.rank === 'A')
            //       return '一级抗菌药物'
            //   else if (r.rank === 'B')
            //       return '一级抗菌药物'
            //   else if (r.rank === 'C')
            //     return '一级抗菌药物'
            //   else if (r.rank === 'D')
            //     return '一级抗菌药物'
            //   else if (r.rank === 'E')
            //     return '一级抗菌药物'
            // }
          }
        ],
        url: {
          list: "/doctor/list",
          delete: "/sys/tenant/delete",
          deleteBatch: "/sys/tenant/deleteBatch"
        },
        dictOptions:{},
      }
    },
    created() {
    },
    computed: {
      importExcelUrl: function(){
        return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
      },
    },
    methods: {
      initDictConfig(){
      }
    }
  }
</script>
<style scoped>
  @import '~@assets/less/common.less';
</style>